// vite.config.js
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/node_modules/.pnpm/vite@5.4.11_sass@1.81.0/node_modules/vite/dist/node/index.js'
import vue from 'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/node_modules/.pnpm/@vitejs+plugin-vue@5.2.0_vite@5.4.11_vue@3.5.13/node_modules/@vitejs/plugin-vue/dist/index.mjs'
import vueDevTools from 'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/node_modules/.pnpm/vite-plugin-vue-devtools@7.6.4_vite@5.4.11_vue@3.5.13/node_modules/vite-plugin-vue-devtools/dist/vite.mjs'
import AutoImport from 'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/node_modules/.pnpm/unplugin-auto-import@0.18.5/node_modules/unplugin-auto-import/dist/vite.js'
import Components from 'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/node_modules/.pnpm/unplugin-vue-components@0.27.4_vue@3.5.13/node_modules/unplugin-vue-components/dist/vite.js'
import { AntDesignVueResolver } from 'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/node_modules/.pnpm/unplugin-vue-components@0.27.4_vue@3.5.13/node_modules/unplugin-vue-components/dist/resolvers.js'
var __vite_injected_original_import_meta_url =
  'file:///C:/Users/lai/Desktop/Front-end%20projects/Vue3-registration-system/vite.config.js'
var vite_config_default = defineConfig({
  css: {
    preprocessorOptions: {
      scss: {
        api: 'modern-compiler'
      }
    }
  },
  plugins: [
    vue(),
    vueDevTools(),
    AutoImport({
      //安装两行后你会发现在组件中不用再导入ref，reactive等
      imports: ['vue', 'vue-router'],
      dts: 'src/auto-import.d.ts',
      //ant-design-vue
      resolvers: [AntDesignVueResolver()]
    }),
    Components({
      resolvers: [
        AntDesignVueResolver({
          importStyle: false
          // css in js
        })
      ]
    })
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(
        new URL('./src', __vite_injected_original_import_meta_url)
      )
    }
  },
  server: {
    // 配置服务器代理，实现跨域
    proxy: {
      //所有以 '/api'为前缀的接口都转向http://localhost:8080
      '/aPi': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        //去掉接口中的 '/api'以便和后端接口匹配
        rewrite: (path) => path.replace(/^\/aPi/, '')
      }
    }
  }
})
export { vite_config_default as default }
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxsYWlcXFxcRGVza3RvcFxcXFxGcm9udC1lbmQgcHJvamVjdHNcXFxcVnVlMy1yZWdpc3RyYXRpb24tc3lzdGVtXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxsYWlcXFxcRGVza3RvcFxcXFxGcm9udC1lbmQgcHJvamVjdHNcXFxcVnVlMy1yZWdpc3RyYXRpb24tc3lzdGVtXFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy9sYWkvRGVza3RvcC9Gcm9udC1lbmQlMjBwcm9qZWN0cy9WdWUzLXJlZ2lzdHJhdGlvbi1zeXN0ZW0vdml0ZS5jb25maWcuanNcIjtpbXBvcnQgeyBmaWxlVVJMVG9QYXRoLCBVUkwgfSBmcm9tICdub2RlOnVybCdcclxuXHJcbmltcG9ydCB7IGRlZmluZUNvbmZpZyB9IGZyb20gJ3ZpdGUnXHJcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJ1xyXG5pbXBvcnQgdnVlRGV2VG9vbHMgZnJvbSAnd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